package com.favccxx.search.infrastructure.util.gson;

import com.google.gson.Gson;

public class GsonUtil {

    public static String toJsonString(Object obj) {
        return new Gson().toJson(obj);
    }


    public static Object parseObject(String json, Class clz) {
        Gson gson = new Gson();
        Object res = gson.fromJson(json, clz);
        return res;
    }



}
